<?php
declare(strict_types = 1);
namespace app\common\lib;

class Str
{
    public static function getLoginToken(string $string): string
    {
        $str = md5(uniqid(md5((string)microtime(true)), true));
        return sha1($str.$string);
    }
}